var pageUrl = window.location.href;
var m = pageUrl.lastIndexOf('/');
var n = pageUrl.lastIndexOf('.');
var str = pageUrl.substring(m+1,n);
var exitAppTicker = 0;

document.addEventListener("deviceready",function(){
    document.addEventListener("backbutton", function(){
		if(str != "homepage"){//显示底部菜单按钮的页面 
			if(str == "pay" && sessionStorage.getItem("flag") == 2){
				window.location.href = "../../plugin/pay/choose.html";
			}else{
				window.location.href = "../../plugin/homepage/homepage.html";
			}     
        }else if(str == "homepage"){
            if(exitAppTicker == 0){
                    exitAppTicker++;
                    console.log("再点一次退出");
                    setTimeout(function(){
                            exitAppTicker = 0;
                    },2000);
            }else if(exitAppTicker == 1){
                    navigator.app.exitApp(); //退出app
            }  
        }else{
            history.back();
        }
    }, false);
},false);

/**上传类型字典*/
var UPLOADTYPE1 = 1;
var UPLOADTYPE2 = 2;
var UPLOADTYPE3 = 3;//资金使用--业主票权登记--导入票权excel

/**
 * websocket处理方法
 * @param openFun 打开页面需要调用的方法
 * @param msgFun 接收到消息时的方法
 */
function webSocketHandler(openFun, msgFun) {
	var ws = getWebsocket();
	var openHandler = function() {
		if(typeof msgFun == "function")
			openFun();
	}
	var messageHandler = function(e) {
		if(!e.data || e.data == "" || !(typeof msgFun == "function"))
			return;
		var msg = JSON.parse(e.data);
		switch(msg.request_type) {
		case REQUEST_TYPE10003:
			if(parseInt(msg.userid) != parseInt(currentUserid)) {
				window.location.href = "logout.jsp";
				alert("您已经被管理员强制下线，如有问题请联系管理员！");
			}
			break;
		default:
			msgFun(msg);
			break;
		}
	}
	var closeHandler = function() {
		ws = null;
	}
	if(ws == null) {
		ws = createWebsocket();
		ws.onopen = openHandler;
	} else {
		openHandler();
	}
	ws.onmessage = messageHandler;
	ws.onclose = closeHandler;
}

/**
 * 传输socket消息
 * @param request_type 请求类型
 * @param pram 请求参数
 * @param data 请求数据
 */
function sendMessage(request_type, pram, data){ 
	var ws = getWebsocket();
	var msg = {userid : currentUserid,pram : pram,request_type : request_type,data : data,sid : getUserSid()};
	ws.send(JSON.stringify(msg));
}

function createWebsocket() {
	var ws = new WebSocket("ws://" + sys_host + ":9003");
	// 所有的页面都是index.jsp里面的子页面（frame），所以为了保证只有一个websocket对象，故作如下处理
	if(document.URL.indexOf("index.jsp") > -1)
		window.ws = ws;
	else
		parent.ws = ws;
	return ws;
}

function getWebsocket() {
	// 所有的页面都是index.jsp里面的子页面（frame），所以为了保证只有一个websocket对象，故作如下处理
	if(document.URL.indexOf("index.jsp") > -1)
		return window.ws;
	else
		return parent.ws;
}

function getUserSid() {
	// 所有的页面都是index.jsp里面的子页面（frame），所以为了保证只有一个websocket对象，故作如下处理
	if(document.URL.indexOf("index.jsp") > -1)
		return window.USER_SID;
	else
		return parent.USER_SID;
}

function setUserSid(user_sid) {
	// 所有的页面都是index.jsp里面的子页面（frame），所以为了保证只有一个websocket对象，故作如下处理
	if(document.URL.indexOf("index.jsp") > -1)
		window.USER_SID = user_sid;
	else
		parent.USER_SID = user_sid;
}

function getBrowserInfo() {
	var agent = navigator.userAgent.toLowerCase();
	var regStr_ie = /msie [\d.]+;/gi;
	var regStr_ff = /firefox\/[\d.]+/gi
	var regStr_chrome = /chrome\/[\d.]+/gi;
	var regStr_saf = /safari\/[\d.]+/gi;
	// IE
	if (agent.indexOf("msie") > 0) {
		return agent.match(regStr_ie);
	}
	// firefox
	if (agent.indexOf("firefox") > 0) {
		return agent.match(regStr_ff);
	}
	// Chrome
	if (agent.indexOf("chrome") > 0) {
		return agent.match(regStr_chrome);
	}
	// Safari
	if (agent.indexOf("safari") > 0 && agent.indexOf("chrome") < 0) {
		return agent.match(regStr_saf);
	}
}

/**房屋状态颜色字典*/
var STATUS_COLOR_DICTIONARY = {"1": "#ECECDF", "3":"#FA8282", "4":"#F8E986", "401":"#483D8B", "402":"#9400D3", 
		"5":"#9AABF4", "6":"#92E892", "7":"#85CDCE", 
		"8":"#FFE4C4", "9":"#FF7F50", "10":"#008B8B", "11":"#006400", "12":"#ECECDF"};
var STATUS_COLOR_PAYMENTFLAG = {"0":"white","1":"red","2":"pink","3":"brown","8":"green","9":"blue"};
var NAVIGATION_TYPE1 = "VB"; // 区-小区-楼幢
var NAVIGATION_TYPE2 = "SOB"; // 区-街道-小区-楼幢
var NAVIGATION_TYPE3 = "SOLC"; // 区-街道-社区-小区-楼幢
var NAVIGATION_TYPE4 = "V"; // 物业小区
var NAVIGATION_TYPE5 = "LC"; // 居委会
var NAVIGATION_TYPE6 = "OC"; // 业委会
var NAVIGATION_TYPE7 = "BU"; // 建设单位
var NAVIGATION_TYPE8 = "SR"; // 物管单位
var NAVIGATION_TYPE9 = "SO"; // 街道办事处
var NAVIGATION_TYPE10 = "SU"; // 售房单位

var TOTAL_TYPE0 = "0";//无汇总项
var TOTAL_TYPE1 = "1";//数值累计
var TOTAL_TYPE2 = "2";//取平均数
var TOTAL_TYPE3 = "3";//个数累计
var TOTAL_TYPE4 = "4";//指定字段值
var TOTAL_TYPE5 = "5";//静态文本
var TOTAL_TYPE_MAP = {"0": "无汇总项","1": "数值累计","2": "取平均数","3": "个数累计","4": "指定字段值","5": "静态文本"};

var ALIGN_TYPE0 = "left";//"靠左排放";
var ALIGN_TYPE1 = "right";//"靠右排放";
var ALIGN_TYPE2 = "center";//"居中排放";
var ALIGN_TYPE_MAP = {"left": "靠左排放","right": "靠右排放","center": "居中排放"};

var NAVIGATION_TABLE_MAP = {VB:"ARH_VILLAGEINFO", SOB:"ARH_VILLAGEINFO", SOLC:"ARH_VILLAGEINFO", 
		V:"ARH_VILLAGEINFO", LC:"ARH_LIVERCOMMITTEE", OC:"ARH_OWNERCOMMITTEE", BU:"ARH_BUILDUNITINFO", 
		SR:"ARH_SERVICERINFO", SO:"ARH_STREETOFFICE", SU: "ARH_SELLERUNITINFO"};
//缴存模式选择保存至本地文件
var STR_FILEURL = "D://apache-tomcat-8.0.24/webapps/tbs/pubframe/file/usersChoose.txt";

// 格式化是否中文
function formatWhether(value) {
	if (value == "Y") {
		return "是"
	} else {
		return "否";
	}
}

/** 所有复选框字典 存放至cookies
 * REG 功能模块简写 1 数字为次序  -curruserid 表示当前用户*/
var CHECKBOX1 = "REG1-";//业主缴存登记-跳过非必填项
var CHECKBOX2 = "REG2-";//业主缴存登记-自动弹出选择窗口
var CHECKBOX3 = "REG3-";//业主缴存登记-业主姓名缺省取房屋坐落
var CHECKBOX4 = "REG4-";//业主缴存登记-坐落中包含小区
var CHECKBOX5 = "REG5-";//业主缴存登记-数据重复提示
var CHECKBOX6 = "REG6-";//业主缴存登记-首次缴存 同时打票
var CHECKBOX7 = "REG7-";//业主缴存登记-首次缴存 不预览打票
var CHECKBOX8 = "REG8-";//缴存入库 保存时同时打印
var CHECKBOX9 = "REG9-";//缴存复核打印 复核时同时打印
var CHECKBOX10 = "REG10-";//缴存复核打印 不预览直接打印
var CHECKBOX12 = "PCH12-";//缴存流水复核-批量缴存设置 复核时同时打印
var CHECKBOX13 = "PCH13-";//缴存流水复核-批量缴存设置 不预览直接打印
var CHECKBOX14 = "PCH14-";//缴存流水复核-批量缴存设置 批量打印生成新票据号

var REQUEST_TYPE1 = 1;
var REQUEST_TYPE2 = 2;
var REQUEST_TYPE3 = 3;
var REQUEST_TYPE4 = 4;
var REQUEST_TYPE5 = 5;
var REQUEST_TYPE6 = 6;
var REQUEST_TYPE7 = 7;
var REQUEST_TYPE8 = 8;
var REQUEST_TYPE9 = 9;
var REQUEST_TYPE10 = 10;
var REQUEST_TYPE11 = 11;
var REQUEST_TYPE12 = 12;
var REQUEST_TYPE13 = 13;
var REQUEST_TYPE14 = 14;
var REQUEST_TYPE15 = 15;
var REQUEST_TYPE16 = 16;
var REQUEST_TYPE17 = 17;
var REQUEST_TYPE18 = 18;
var REQUEST_TYPE19 = 19;
var REQUEST_TYPE20 = 20;
var REQUEST_TYPE21 = 21;
var REQUEST_TYPE22 = 22;
var REQUEST_TYPE23 = 23;
var REQUEST_TYPE24 = 24;
var REQUEST_TYPE25 = 25;
var REQUEST_TYPE26 = 26;
var REQUEST_TYPE27 = 27;
var REQUEST_TYPE28 = 28;
var REQUEST_TYPE29 = 29;
var REQUEST_TYPE30 = 30;
var REQUEST_TYPE31 = 31;
var REQUEST_TYPE32 = 32;
var REQUEST_TYPE33 = 33;
var REQUEST_TYPE34 = 34;
var REQUEST_TYPE35 = 35;
var REQUEST_TYPE36 = 36;
var REQUEST_TYPE37 = 37;
var REQUEST_TYPE38 = 38;
var REQUEST_TYPE39 = 39;
var REQUEST_TYPE40 = 40;
var REQUEST_TYPE41 = 41;
var REQUEST_TYPE42 = 42;
var REQUEST_TYPE43 = 43;
var REQUEST_TYPE44 = 44;
var REQUEST_TYPE45 = 45;
var REQUEST_TYPE46 = 46;
var REQUEST_TYPE47 = 47;
var REQUEST_TYPE48 = 48;
var REQUEST_TYPE49 = 49;
var REQUEST_TYPE50 = 50;
var REQUEST_TYPE51 = 51;
var REQUEST_TYPE52 = 52;
var REQUEST_TYPE53 = 53;
var REQUEST_TYPE54 = 54;
var REQUEST_TYPE55 = 55;
var REQUEST_TYPE56 = 56;
var REQUEST_TYPE57 = 57;
var REQUEST_TYPE58 = 58;
var REQUEST_TYPE59 = 59;
var REQUEST_TYPE60 = 60;
var REQUEST_TYPE61 = 61;
var REQUEST_TYPE62 = 62;
var REQUEST_TYPE63 = 63;
var REQUEST_TYPE65 = 65;
var REQUEST_TYPE66 = 66;
var REQUEST_TYPE67 = 67;
var REQUEST_TYPE68 = 68;
var REQUEST_TYPE69 = 69;
var REQUEST_TYPE70 = 70;
var REQUEST_TYPE71 = 71;
var REQUEST_TYPE72 = 72;
var REQUEST_TYPE73 = 73;
var REQUEST_TYPE74 = 74;
var REQUEST_TYPE75 = 75;
var REQUEST_TYPE76 = 76;
var REQUEST_TYPE77 = 77;
var REQUEST_TYPE78 = 78;
var REQUEST_TYPE79 = 79;
var REQUEST_TYPE80 = 80;
var REQUEST_TYPE81 = 81;
var REQUEST_TYPE82 = 82;
var REQUEST_TYPE83 = 83;
var REQUEST_TYPE84 = 84;
var REQUEST_TYPE85 = 85;
var REQUEST_TYPE86 = 86;
var REQUEST_TYPE87 = 87;
var REQUEST_TYPE88 = 88;
var REQUEST_TYPE89 = 89;
var REQUEST_TYPE90 = 90;
var REQUEST_TYPE91 = 91;
var REQUEST_TYPE92 = 92;
var REQUEST_TYPE93 = 93;
var REQUEST_TYPE94 = 94;
var REQUEST_TYPE95 = 95;
var REQUEST_TYPE96 = 96;
var REQUEST_TYPE97 = 97;
var REQUEST_TYPE98 = 98;
var REQUEST_TYPE99 = 99;
var REQUEST_TYPE100 = 100;
var REQUEST_TYPE101 = 101;
var REQUEST_TYPE102 = 102;
var REQUEST_TYPE103 = 103;
var REQUEST_TYPE104 = 104;
var REQUEST_TYPE105 = 105;
var REQUEST_TYPE106 = 106;
var REQUEST_TYPE107 = 107;
var REQUEST_TYPE108 = 108;
var REQUEST_TYPE109 = 109;
var REQUEST_TYPE110 = 110;
var REQUEST_TYPE111 = 111;
var REQUEST_TYPE112 = 112;
var REQUEST_TYPE113 = 113;
var REQUEST_TYPE114 = 114;
var REQUEST_TYPE115 = 115;
var REQUEST_TYPE116 = 116;
var REQUEST_TYPE117 = 117;
var REQUEST_TYPE118 = 118;
var REQUEST_TYPE119 = 119;
var REQUEST_TYPE120 = 120;
var REQUEST_TYPE121 = 121;
var REQUEST_TYPE122 = 122;
var REQUEST_TYPE123 = 123;
var REQUEST_TYPE124 = 124;
var REQUEST_TYPE125 = 125;
var REQUEST_TYPE126 = 126;
var REQUEST_TYPE127 = 127;
var REQUEST_TYPE128 = 128;
var REQUEST_TYPE129 = 129;
var REQUEST_TYPE130 = 130;
var REQUEST_TYPE131 = 131;
var REQUEST_TYPE132 = 132;
var REQUEST_TYPE133 = 133;
var REQUEST_TYPE134 = 134;
var REQUEST_TYPE135 = 135;
var REQUEST_TYPE136 = 136;
var REQUEST_TYPE137 = 137;
var REQUEST_TYPE138 = 138;
var REQUEST_TYPE139 = 139;
var REQUEST_TYPE140 = 140;
var REQUEST_TYPE141 = 141;
var REQUEST_TYPE142 = 142;
var REQUEST_TYPE143 = 143;
var REQUEST_TYPE144 = 144;
var REQUEST_TYPE145 = 145;
var REQUEST_TYPE146 = 146;
var REQUEST_TYPE147 = 147;
var REQUEST_TYPE148 = 148;
var REQUEST_TYPE149 = 149;
var REQUEST_TYPE150 = 150;
var REQUEST_TYPE151 = 151;
var REQUEST_TYPE152 = 152;
var REQUEST_TYPE153 = 153;
var REQUEST_TYPE154 = 154;
var REQUEST_TYPE155 = 155;
var REQUEST_TYPE156 = 156;
var REQUEST_TYPE157 = 157;
var REQUEST_TYPE158 = 158;
var REQUEST_TYPE159 = 159;
var REQUEST_TYPE160 = 160;
var REQUEST_TYPE161 = 161;
var REQUEST_TYPE162 = 162;
var REQUEST_TYPE163 = 163;
var REQUEST_TYPE164 = 164;
var REQUEST_TYPE165 = 165;
var REQUEST_TYPE166 = 166;
var REQUEST_TYPE167 = 167;
var REQUEST_TYPE168 = 168;
var REQUEST_TYPE169 = 169;
var REQUEST_TYPE170 = 170;
var REQUEST_TYPE171 = 171;
var REQUEST_TYPE172 = 172;

var REQUEST_TYPE200 = 200;
var REQUEST_TYPE201 = 201;
var REQUEST_TYPE202 = 202;
var REQUEST_TYPE203 = 203;
var REQUEST_TYPE204 = 204;
var REQUEST_TYPE205 = 205;
var REQUEST_TYPE206 = 206;
var REQUEST_TYPE207 = 207;
var REQUEST_TYPE208 = 208;
var REQUEST_TYPE209 = 209;
var REQUEST_TYPE210 = 210;
var REQUEST_TYPE211 = 211;
var REQUEST_TYPE212 = 212;
var REQUEST_TYPE213 = 213;
var REQUEST_TYPE214 = 214;
var REQUEST_TYPE215 = 215;
var REQUEST_TYPE216 = 216;
var REQUEST_TYPE217 = 217;
var REQUEST_TYPE218 = 218;
var REQUEST_TYPE219 = 219;
var REQUEST_TYPE220 = 220;
var REQUEST_TYPE221 = 221;
var REQUEST_TYPE222 = 222;
var REQUEST_TYPE223 = 223;
var REQUEST_TYPE224 = 224;
var REQUEST_TYPE225 = 225;
var REQUEST_TYPE226 = 226;
var REQUEST_TYPE227 = 227;
var REQUEST_TYPE228 = 228;
var REQUEST_TYPE229 = 229;
var REQUEST_TYPE230 = 230;
var REQUEST_TYPE231 = 231;
var REQUEST_TYPE232 = 232;
var REQUEST_TYPE233 = 233;
var REQUEST_TYPE234 = 234;
var REQUEST_TYPE235 = 235;
var REQUEST_TYPE236 = 236;
var REQUEST_TYPE237 = 237;
var REQUEST_TYPE238 = 238;

var REQUEST_TYPE250 = 250;
var REQUEST_TYPE251 = 251;
var REQUEST_TYPE252 = 252;
var REQUEST_TYPE253 = 253;
var REQUEST_TYPE254 = 254;
var REQUEST_TYPE255 = 255;
var REQUEST_TYPE256 = 256;
var REQUEST_TYPE257 = 257;
var REQUEST_TYPE258 = 258;
var REQUEST_TYPE259 = 259;

var REQUEST_TYPE300 = 300;
var REQUEST_TYPE301 = 301;
var REQUEST_TYPE302 = 302;
var REQUEST_TYPE304 = 304;


var REQUEST_TYPE700 = 700;
var REQUEST_TYPE701 = 701;

var REQUEST_TYPE800 = 800;
var REQUEST_TYPE801 = 801;
var REQUEST_TYPE802 = 802;
var REQUEST_TYPE803 = 803;
var REQUEST_TYPE804 = 804;
var REQUEST_TYPE805 = 805;
var REQUEST_TYPE806 = 806;
var REQUEST_TYPE807 = 807;
var REQUEST_TYPE808 = 808;
var REQUEST_TYPE809 = 809;
var REQUEST_TYPE810 = 810;
var REQUEST_TYPE811 = 811;
var REQUEST_TYPE812 = 812;
var REQUEST_TYPE813 = 813;
var REQUEST_TYPE814 = 814;
var REQUEST_TYPE815 = 815;
var REQUEST_TYPE816 = 816;
var REQUEST_TYPE817 = 817;
var REQUEST_TYPE818 = 818;
var REQUEST_TYPE819 = 819;
var REQUEST_TYPE820 = 820;
var REQUEST_TYPE821 = 821;
var REQUEST_TYPE822 = 822;
var REQUEST_TYPE823 = 823;
var REQUEST_TYPE824 = 824;
var REQUEST_TYPE825 = 825;
var REQUEST_TYPE826 = 826;
var REQUEST_TYPE827 = 827;
var REQUEST_TYPE828 = 828;
var REQUEST_TYPE829 = 829;
var REQUEST_TYPE830 = 830;
var REQUEST_TYPE831 = 831;
var REQUEST_TYPE832 = 832;
var REQUEST_TYPE833 = 833;
var REQUEST_TYPE834 = 834;
var REQUEST_TYPE835 = 835;
var REQUEST_TYPE836 = 836;
var REQUEST_TYPE837 = 837;
var REQUEST_TYPE838 = 838;
var REQUEST_TYPE839 = 839;
var REQUEST_TYPE840 = 840;
var REQUEST_TYPE841 = 841;
var REQUEST_TYPE842 = 842;
var REQUEST_TYPE843 = 843;
var REQUEST_TYPE844 = 844;
var REQUEST_TYPE845 = 845;
var REQUEST_TYPE846 = 846;
var REQUEST_TYPE847 = 847;
var REQUEST_TYPE848 = 848;
var REQUEST_TYPE849 = 849;

var REQUEST_TYPE874 = 874;
var REQUEST_TYPE875 = 875;
var REQUEST_TYPE876 = 876;
var REQUEST_TYPE877 = 877;
var REQUEST_TYPE878 = 878;
var REQUEST_TYPE879 = 879;
var REQUEST_TYPE880 = 880;
var REQUEST_TYPE881 = 881;
var REQUEST_TYPE882 = 882;
var REQUEST_TYPE883 = 883;
var REQUEST_TYPE884 = 884;
var REQUEST_TYPE885 = 885;
var REQUEST_TYPE886 = 886;
var REQUEST_TYPE887 = 887;
var REQUEST_TYPE888 = 888;
var REQUEST_TYPE889 = 889;
var REQUEST_TYPE890 = 890;
var REQUEST_TYPE891 = 891;
var REQUEST_TYPE892 = 892;
var REQUEST_TYPE893 = 893;
var REQUEST_TYPE894 = 894;
var REQUEST_TYPE895 = 895;
var REQUEST_TYPE896 = 896;
var REQUEST_TYPE897 = 897;
var REQUEST_TYPE898 = 898;
var REQUEST_TYPE899 = 899;
var REQUEST_TYPE900 = 900;
var REQUEST_TYPE901 = 901;
var REQUEST_TYPE902 = 902;
var REQUEST_TYPE903 = 903;
var REQUEST_TYPE904 = 904;
var REQUEST_TYPE905 = 905;
var REQUEST_TYPE906 = 906;
var REQUEST_TYPE907 = 907;
var REQUEST_TYPE908 = 908;
var REQUEST_TYPE909 = 909;
var REQUEST_TYPE910 = 910;
var REQUEST_TYPE911 = 911;
var REQUEST_TYPE912 = 912;
var REQUEST_TYPE913 = 913;
var REQUEST_TYPE914 = 914;
var REQUEST_TYPE915 = 915;
var REQUEST_TYPE916 = 916;
var REQUEST_TYPE917 = 917;
var REQUEST_TYPE918 = 918;
var REQUEST_TYPE919 = 919;
var REQUEST_TYPE920 = 920;
var REQUEST_TYPE921 = 921;
var REQUEST_TYPE922 = 922;
var REQUEST_TYPE923 = 923;
var REQUEST_TYPE924 = 924;
var REQUEST_TYPE925 = 925;
var REQUEST_TYPE926 = 926;
var REQUEST_TYPE927 = 927;
var REQUEST_TYPE928 = 928;
var REQUEST_TYPE929 = 929;
var REQUEST_TYPE930 = 930;
var REQUEST_TYPE931 = 931;
var REQUEST_TYPE932 = 932;
var REQUEST_TYPE933 = 933;
var REQUEST_TYPE934 = 934;
var REQUEST_TYPE935 = 935;
var REQUEST_TYPE936 = 936;
var REQUEST_TYPE937 = 937;

var REQUEST_TYPE996 = 996;
var REQUEST_TYPE997 = 997;
var REQUEST_TYPE998 = 998;
var REQUEST_TYPE999 = 999;
var REQUEST_TYPE1000 = 1000;
var REQUEST_TYPE1001 = 1001;
var REQUEST_TYPE1002 = 1002;
var REQUEST_TYPE1003 = 1003;
var REQUEST_TYPE1004 = 1004;
var REQUEST_TYPE1005 = 1005;
var REQUEST_TYPE1006 = 1006;
var REQUEST_TYPE1007 = 1007;
var REQUEST_TYPE1008 = 1008;
var REQUEST_TYPE1009 = 1009;
var REQUEST_TYPE1010 = 1010;
var REQUEST_TYPE1011 = 1011;
var REQUEST_TYPE1012 = 1012;
var REQUEST_TYPE1013 = 1013;
var REQUEST_TYPE1014 = 1014;
var REQUEST_TYPE1015 = 1015;
var REQUEST_TYPE1016 = 1016;
var REQUEST_TYPE1017 = 1017;
var REQUEST_TYPE1018 = 1018;
var REQUEST_TYPE1019 = 1019;
var REQUEST_TYPE1020 = 1020;
var REQUEST_TYPE1021 = 1021;
var REQUEST_TYPE1022 = 1022;
var REQUEST_TYPE1023 = 1023;
var REQUEST_TYPE1024 = 1024;
var REQUEST_TYPE1025 = 1025;
var REQUEST_TYPE1026 = 1026;
var REQUEST_TYPE1027 = 1027;
var REQUEST_TYPE1028 = 1028;
var REQUEST_TYPE1029 = 1029;
var REQUEST_TYPE1030 = 1030;
var REQUEST_TYPE1031 = 1031;
var REQUEST_TYPE1032 = 1032;
var REQUEST_TYPE1033 = 1033;
var REQUEST_TYPE1034 = 1034;
var REQUEST_TYPE1035 = 1035;
var REQUEST_TYPE1036 = 1036;
var REQUEST_TYPE1037 = 1037;
var REQUEST_TYPE1038 = 1038;
var REQUEST_TYPE1039 = 1039;
var	REQUEST_TYPE1040 = 1040;
var	REQUEST_TYPE1041 = 1041;
var	REQUEST_TYPE1042 = 1042;
var	REQUEST_TYPE1043 = 1043;
var	REQUEST_TYPE1044 = 1044;

var REQUEST_TYPE2001 = 2001;
var REQUEST_TYPE2002 = 2002;
var REQUEST_TYPE2003 = 2003;
var REQUEST_TYPE2004 = 2004;
var REQUEST_TYPE2005 = 2005;

var REQUEST_TYPE6001 = 6001;
var REQUEST_TYPE6002 = 6002;
var REQUEST_TYPE6003 = 6003;
var REQUEST_TYPE6004 = 6004;
var REQUEST_TYPE6005 = 6005;
var REQUEST_TYPE6006 = 6006;
var REQUEST_TYPE6007 = 6007;
var REQUEST_TYPE6008 = 6008;
var REQUEST_TYPE6009 = 6009;
var REQUEST_TYPE6010 = 6010;


var REQUEST_TYPE7000 = 7000;


var REQUEST_TYPE10000 = 10000;
var REQUEST_TYPE10001 = 10001;
var REQUEST_TYPE10002 = 10002;
var REQUEST_TYPE10003 = 10003;

var REQUEST_TYPE20000 = 20000;
var REQUEST_TYPE20001 = 20001;
var REQUEST_TYPE20002 = 20002;
var REQUEST_TYPE20003 = 20003;